/**
 * Copyright (c) 2020 lizebang
 *
 * This software is released under the MIT License.
 * https://opensource.org/licenses/MIT
 */

package golog

import (
	"log"
)

var (
	GoLogger = &goLogger{}
)

type goLogger struct{}

// Debug - Logger implementation.
func (l *goLogger) Debug(args ...interface{}) {
	log.Println(args...)
}

// Info - Logger implementation.
func (l *goLogger) Info(args ...interface{}) {
	log.Println(args...)
}

// Warn - Logger implementation.
func (l *goLogger) Warn(args ...interface{}) {
	log.Println(args...)
}

// Error - Logger implementation.
func (l *goLogger) Error(args ...interface{}) {
	log.Println(args...)
}

// Fatal - Logger implementation.
func (l *goLogger) Fatal(args ...interface{}) {
	log.Fatalln(args...)
}

// Debugf - Logger implementation.
func (l *goLogger) Debugf(format string, args ...interface{}) {
	log.Printf(format, args...)
}

// Infof - Logger implementation.
func (l *goLogger) Infof(format string, args ...interface{}) {
	log.Printf(format, args...)
}

// Warnf - Logger implementation.
func (l *goLogger) Warnf(format string, args ...interface{}) {
	log.Printf(format, args...)
}

// Errorf - Logger implementation.
func (l *goLogger) Errorf(format string, args ...interface{}) {
	log.Printf(format, args...)
}

// Fatalf - Logger implementation.
func (l *goLogger) Fatalf(format string, args ...interface{}) {
	log.Fatalf(format, args...)
}
